<?php
namespace Admin\Model;
use Think\Model;

Class AdminModel extends Model{
	//protected $tableName = 'admin';
	// 账户验证
	public function check_login($options){
		$result=$this->where($options)->find();
		return $result;
	}
	//登录成功后修改个人信息
	public function save_login($id,$data){
		$this->where($id)->setInc('admin_hits',1);
		$this->where($id)->save($data);
	}
}
?>